<?php
    $session=new CHttpSession();
    $session->open();
    $i=$session['i'];
?>
<form method="post">
<tr<?php echo $i%2==1 ? '': ' class="tr1"'; ?>>
    <td align="center" class="td1<?php echo $i%2==1 ? '': ' td2"'; ?>"><?php echo $data->jid;?></td>
    <td class="td1<?php echo $i%2==1 ? '': ' td2"'; ?>"><a href="/index.php?r=job/view&id=<?php echo $data->jid;?>"><?php echo $data->title;?></a></td>
    <td align="center"<?php echo $i%2==1 ? '': ' class="td2"'; ?>><?php echo $data->createtime;?></td>
    <td align="center"<?php echo $i%2==1 ? '': ' class="td2"'; ?>>
        <input type="radio" <?php if($data->audit==1) echo 'checked="checked"';?> id="audit_<?php echo $data->jid;?>_1" value="1" class="radio" name="audit[<?php echo $data->jid;?>]">
        <label for="audit_<?php echo $data->jid;?>_1">通过</label>
        <input type="radio" <?php if($data->audit==0) echo 'checked="checked"';?> id="audit_<?php echo $data->jid;?>_0" value="0" class="radio" name="audit[<?php echo $data->jid;?>]">
        <label for="audit_<?php echo $data->jid;?>_0">未通过</label>
    </td>
    <td align="center"<?php echo $i%2==1 ? '': ' class="td2"'; ?>><input type="submit" value="更新"></td>
</tr>
</form>
<?php
$session['i']=$i+1;
?>